{% if Race_list %}
<table class="table table-striped table-hover table-condensed">
    <thead>
    <th>站点族编号</th>
    <th>简称</th>
    <th>关联站点</th>
    <th>操作</th>
    </thead>
    <tbody>
    {% for race in Race_list %}
    <tr>
        <td>{{ race.raceid }}</td>
        <td>{{ race.alias }}</td>
        <td>
            {% for site in race.site_set.all %}
            <p>{{ site.fullname }}</p>
            {% endfor %}
        </td>
        <td>
            <a href="{% url 'configmanager:raceedit' race.id %}" type="button" class="btn btn-info">编辑</a>
            <a href="javascript:void(0);"
               onclick="RaceDelete('{{ race.id }}', '{{ race.alias }}', '{{ pagenumber }}')" type="button"
               class="btn btn-danger">删除</a>
        </td>
    </tr>
    {% endfor %}
    </tbody>
</table>
{% else %}
<p>No SiteRace available</p>
{% endif %}